<%--
  Created by IntelliJ IDEA.
  User: HuangLiting
  Date: 2018/5/9
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html ng-app="classApp">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="css/admin.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/houtai.css"/>
    <script type="text/javascript" src="js/libs/modernizr.min.js"></script>
</head>
<body ng-controller="classController">
<jsp:include page="/header.jsp"></jsp:include>
<div class="container clearfix">
    <!--/sidebar-->
    <jsp:include page="/leftBar.jsp"></jsp:include>
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#" color="#white">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">实验课程信息</span></div>
        </div>
        <div class="new_function_area">
            <blockquote class="layui-elem-quote layui-quote-nm">
                <div class="input-group-search">
                    <label class="layui-form-label padding-form-label">上课老师</label>
                    <div class="layui-input-block padding-form-input">
                        <input id="teacher" type="text" placeholder="请输入教工号" ng-model="tid"/>
                    </div>
                </div>
                <div class="input-group-search">
                    <label class="layui-form-label padding-form-label">上课地点</label>
                    <div class="layui-input-block padding-form-input">
                        <input id="lname" type="text" placeholder="请输入上课地点" ng-model="lname"/>
                    </div>
                </div>
                <div class="input-group-search">
                    <label class="layui-form-label padding-form-label">上课日期</label>
                    <div class="layui-input-block padding-form-input">
                        <input id="classDate" type="date"/>
                    </div>
                </div>
                <div class="input-group-search">
                    <div class="layui-form-label padding-form-label">
                    </div>
                    <div class="layui-input-block padding-form-input">
                        <button class="layui-btn layui-btn-small" id="search" ng-click="findClass()">
                            <i class="layui-icon">&#xe615;</i> 查询
                        </button>
                    </div>
                </div>
            </blockquote>
            <fieldset class="layui-elem-field">
                <legend>数据列表</legend>
                <div class="layui-field-box layui-form">
                    <table class="layui-table admin-table fix-table-layout">
                        <thead>
                        <tr>
                            <th style="width: 30px;">序号</th>
                            <th>上课名称</th>
                            <th>课程老师</th>
                            <th>上课时间</th>
                            <th>上课地点</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="content">
                            <tr ng-repeat="msg in classes">
                                <td style="width: 30px;" ng-bind="msg.cid"></th>
                                <td ng-bind="msg.lessonName"></td>
                                <td ng-bind="msg.tname"></td>
                                <td ng-bind="msg.classDate+ '  ' + msg.classNum+'-'+(msg.classNum+msg.classLength-1)+'节'"></td>
                                <td ng-bind="msg.lname"></td>
                                <td><a href="/classDetailUrl.do?cid={{msg.cid}}">查看</a></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
    <!--/main-->
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/classmsg.js"></script>
<script>

</script>
</html>
